package oo.extendss;

import oo.abs.Sing;
import oo.fengzhuang.Person;

import java.util.HashMap;
import java.util.Map;

public class Singer extends Callable {

    private Map<String, Person> friendMap = new HashMap();

    public Singer() {
        System.out.println("子类");
    }

    @Override
    public void doEveryDay() {
        System.out.println("Sing....");
        sing();
    }

    public void addFrinedMap(String key) {
        Person person = friendMap.get(key);
        if (person == null) {
            friendMap.put(key, new Person());
        }
    }

    public Person getFriend(String key) {
        Person person = friendMap.get(key);
        if (null == person) {
            person = new Person();
            friendMap.put(key, person);
        }
        return person;
    }

    @Override
    public void drink() {

    }

    @Override
    public void lababa() {

    }

    @Override
    public void saniao() {

    }

    @Override
    public void sing() {

    }
}
